<!-- @format -->
<template>
  <div>
    <ul>
      <li
        v-for="(item, index) in arr"
        :key="item.id">
        {{ item }} == {{ index }}
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        arr: [
          { id: 1, name: '梅西', nation: '阿根廷' },
          {
            id: 2,
            name: 'C罗',
            nation: '葡萄牙'
          },
          {
            id: 3,
            name: '姆巴佩',
            nation: '法国'
          }
        ]
      }
    }
  }
</script>

<style></style>
